package com.project.dao;

import java.util.List;

import com.project.dao.bean.Menu;
import com.project.webapp.form.backend.basic.MenuForm;
import com.project.webapp.form.front.preSchool.PreSchoolForm;

/**
 * 
 * <pre>
 * 菜单信息
 * </pre>
 * 
 * @author lantian
 * @version $Id: IMenuDao.java, v 0.1 2012-9-7 下午01:34:09 lantian Exp $
 */
public interface IMenuDao extends IBaseDao {
	/**
	 * 
	 * <pre>
	 * 保存
	 * </pre>
	 * 
	 * @param menuForm
	 */
	public String save(MenuForm menuForm) throws Exception;

	public void update(MenuForm menuForm) throws Exception;

	public List<Menu> findMenuByPg(MenuForm menuForm) throws Exception;

	public Integer findCount(MenuForm menuForm) throws Exception;

	public void delete(MenuForm menuForm) throws Exception;

	public List<Menu> findMenuForTree() throws Exception;

	public List<Menu> getMenuByCondition(PreSchoolForm preSchoolForm)
			throws Exception;

	public List<Menu> getDescendantMenuByAncestorCodeAndSeq(
			String ancestorCode, String seq) throws Exception;

	public void updateIsShow(String menuId, String showSort) throws Exception;

	public void updateIsShowToUnShow() throws Exception;

	public List<Menu> getMenuForCourse(String menuCode) throws Exception;
}
